#include<bits/stdc++.h>
using namespace std;
signed main() {
    unordered_map<string, bool> chk;

    int n;
    cin >> n;
    while(n--) {
        int k;
        string x;
        cin >> k;
        for(int i = 1; i <= k; i++) {
            cin >> x;
            if(k == 1) continue;
            chk[x] = 1;
        }
    }

    set<string> st;
    vector<string> ans;

    int m;
    cin >> m;
    string x;
    while(m--) {
        cin >> x;
        if(!chk.count(x) && !st.count(x)) {
            st.insert(x);
            ans.push_back(x);
        }
    }

    if(ans.size() == 0)
        cout << "No one is handsome";
    else {
        for(int i = 0; i < ans.size(); i++) {
            if(!i)
                cout << ans[i];
            else
                cout << " " << ans[i];
        }
    }
    return 0;
}

